From: Felix Fietkau Date: Wed, 29 Nov 2006 17:23:11 +0000 (+0000) Subject: add workaround for fixing the wrong (for us) asus wl-500gp wan port vlan settings X-Git-Tag: whiterussian_0.9~53 X-Git-Url: http://git.openwrt.org/%22https:/collectd.org///%22https:/collectd.org/?a=commitdiff_plain;h=47fc55717f0d016ff7f70f2672ee13a65cd648d3;p=openwrt%2Fsvn-archive%2Fopenwrt.git add workaround for fixing the wrong (for us) asus wl-500gp wan port vlan settings SVN-Revision: 5678 --- diff --git a/openwrt/package/base-files/default/etc/init.d/S05nvram b/openwrt/package/base-files/default/etc/init.d/S05nvram index e4ce3755e1..21cd2edcfa 100755 --- a/openwrt/package/base-files/default/etc/init.d/S05nvram +++ b/openwrt/package/base-files/default/etc/init.d/S05nvram @@ -103,6 +103,14 @@ nvram_default lan_proto static [ "$boardnum" = "45" \ -a "$boardtype" = "0x042f" ] && { debug "### wl-500g premium hacks ###" + [ -z "$(nvram get lan_ifnames_t)" || { + # hasn't been remapped yet, revert the vlan1 config as well, because + # it defaults to "0 5u", which we can't use. + # use lan_ifnames_t as an indicator of whether the config was made + # by the original firmware. + nvram unset vlan1ports + nvram unset lan_ifnames_t + } remap eth0.1 vlan0 remap eth0 vlan1